package com.zl.learning.quartz;

import org.quartz.Job;
import org.quartz.JobDetail;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * Created by zhaolei on 2017/7/4.
 */
public class MyJob1 implements Job {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        JobDetail jobDetail = context.getJobDetail();
        System.out.println(jobDetail.getDescription());
        System.out.println(jobDetail.getKey());
        System.out.println("myjob1");
    }
}
